<?php

namespace app\model\archives_model;

use app\BaseModel;
use think\model\relation\HasMany;

class UserArchiveTemplateModel extends BaseModel
{
    protected $name = 'user_archive_template';

    public function getIsCustomAttr($value,$data)
    {
        return 0;
    }
    /**
     * 关联用户档案-选项表
     * @return HasMany
     */
    public function templateOptions(): HasMany
    {
        return $this->hasMany(UserArchiveOptionModel::class,'template_id');
    }
}